package com.pengtu;

/**
 * Constant values used throughout the application.
 * 
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 * 
 * @author
 */
public class Constants {
	// ~ Static fields/initializers
	// =============================================

	/** double型运算时的误差范围为0.01 */
	public static final double ERRORRANGE = 0.01;// double型运算时的误差范围为0.01

	/** The name of the ResourceBundle used in this application */
	public static final String BUNDLE_KEY = "messages";

	/** The encryption algorithm key to be used for passwords */
	public static final String ENC_ALGORITHM = "SHA";

	/** A flag to indicate if passwords should be encrypted */
	public static final String ENCRYPT_PASSWORD = "encryptPassword";

	/** File separator from System properties */
	public static final String FILE_SEP = System.getProperty("file.separator");

	/** User home from System properties */
	public static final String USER_HOME = System.getProperty("user.home")
			+ FILE_SEP;

	/** The name of the configuration hashmap stored in application scope. */

	public static final String CONFIG = "appConfig";

	public static final String APP_NAME = "cqps";

	public static final String APP_INTEGRATION_NAME = "Hcpms";

	public static final String INTEGRATION_SESSIONID_KEY = "INTEGRATION_SESSIONID";

	public static final String INTEGRATION_PASSWORD = "##fromthisintegration###";

	public static final String INTEGRATION_SESSIONID = "integrationsessionId";
	// 以下是Ext json中的一些参数设置
	public static final String OPERATE_MODE = "json";

	public static final String SAVEMORE_JSON = "jsonStr";

	public static final String CODE_KEY_VALUE = "codeKeyValue";

	public static final Integer MAX_COUNT = Integer.MAX_VALUE;

	public static final String EXT_SUCCESS_JSON_STR = "{'success':true}";

	public static final String EXT_FAILURE_JSON_STR = "{'success':false}";

	public static final String EXT_LIST_JSON_STR = "{'success':true,'totalCounts':0,'results':[]}";

	public static final String EXT_DATA_JSON_STR = "{'success':true,'data':{}}";

	public static final String EXT_JSON_SUCCESS_STR = "success";
	public static final String EXT_JSON_TOTALCOUNTS_STR = "totalCounts";
	public static final String EXT_JSON_RESULTS_STR = "results";
	public static final String EXT_JSON_DATA_STR = "data";
	public static final String USER_ADMIN = "admin";

	public static final String APP_CONTEXT_HIBERNATE = "springConfig/applicationContext-hibernate.xml";
	public static final String APP_CONTEXT_SERVICE = "springConfig/applicationContext-service.xml";
	public static final String APP_CONTEXT_RESOURCE = "springConfig/applicationContext-resources.xml";

	public static final String APP_CONFIG_PROPERTY = "/appConfig.properties";
	// 表单form
	public static final String GENERAL_FORM = "一般表单";
	public static final String GENERAL_EDIT = "修改";
	public static final String GENERAL_ADD = "新增";
	public static final String GENERAL_Manage = "管理";

	/**
	 * Session scope attribute that holds the locale set by the user. By setting
	 * this key to the same one that Struts uses, we get synchronization in
	 * Struts w/o having to do extra work or have two session-level variables.
	 */
	public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";

	public static final String ACTION = "1";

	public static final String UNACTION = "0";

	/** checkBox 选中 */
	public static final String CHECK_BOX_ON = "on";

	/** checkBox 未选中 */
	public static final String CHECK_BOX_UN = "un";

	public static final String MESSAGETYPE_URGENT = "1";

	public static final String MESSAGETYPE_COMMONLY = "0";

	/** 消息类型-通知 */
	public static final String MESSAGETYPE_NOTICE = "0";

	/** 消息类型-系统消息 */
	public static final String MESSAGETYPE_SYSTEM = "1";

	/** 当前记录有效 */
	public static final String RECFLAG_IN = "0";
	/** 当前记录无效 */
	public static final String RECFLAG_UN = "1";

	/** 当前路线是新建工程 */
	public static final String RECFLAG_IN_PROJECT = "-1";

	/** 当前记录未删除 */
	public static final String DELFLAG_IN = "0";

	/** 当前记录删除 */
	public static final String DELFLAG_UN = "1";

	/** 当前记录永久删除 */
	public static final Integer DELFLAG_OUT = -1;

	/** 标记可用 */
	public static final Boolean USEFLAG_ON = true;

	/** 标记不可用 */
	public static final Boolean USEFLAG_OFF = false;

	/** 标记可用 */
	public static final String ON = "1";

	/** 标记不可用 */
	public static final String OFF = "0";

	/** 每页分页大小 默认是每页10行 */
	public static final Integer PAGE_SIZE = 10;

	/** 分页时候 displaytag的table Id */
	public static final String LIST_ID_KEY = "listId";

	/** 分页时候 displaytag的table 默认id item */
	public static final String LIST_ID_DEFAULT = "item";

	/** 分页大小保存的参数名 */
	public static final String PAGE_SIZE_KEY = "pageSize";
	/** 跳转到哪页 */
	public static final String PAGE_NUMBER_KEY = "pageNumber";

	/** 总页大小 */
	public static final String RESULT_SIZE_KEY = "resultSize";

	/** Ext 当前从哪行开始 */
	public static final String PAGE_EXT_NUMBER_KEY = "start";
	/** Ext 分页 每页分页大小 */
	public static final String PAGE_EXT_SIZE_KEY = "limit";
	/** Ext 排序的字段 */
	public static final String PAGE_EXT_SORT_KEY = "sort";
	/** Ext 排序的顺序 */
	public static final String PAGE_EXT_DIR_KEY = "dir";

	/** 是否是一个新的查询 */
	public static final String NEW_SEARCH = "newSearch";

	/** 查询条件保存session 键值 */
	public static final String SEARCH_CONDITION = "searchCondition";
	/** 逻辑假、否 */
	public static final String LOGIC_FALSE = "0";
	/** 逻辑真、是 */
	public static final String LOGIC_TRUE = "1";
	/** 审核通过 */
	public static final String CHECK_TRUE = "1";
	/** 未审核 */
	public static final String CHECK_FALSE = "0";

	public static final String CONTAIN_ZERO = "1";

	public static final String CURRENT_USER = "_CurrentUser";

	public static final String CURRENT_USER_MSGCOUNT = "currentUsermsgCount";

	public static final String CURRENT_USER_MSG_SYS_COUNT = "currentUsermsgSysCount";

	public static final String CURRENT_USER_MSG_COMM_COUNT = "currentUsermsgCommCount";

	public static final String PROJECT_INFO = "projectInfo";

	public static final String PROJECT_YEAR = "projectYear";

	public static final String PROJECT_ORG_CODE = "projectOrgCode";

	public static final String PROJECT_ID = "projectId";

	public static final String CONTRACT_ID = "contractId";

	/**
	 * The name of the CSS Theme setting.
	 */
	public static final String CSS_THEME = "csstheme";

	public static final String UPLOAD_PATH = "upload" + FILE_SEP;

	public static final String UPLOAD_ROOT_PATH = "upload" + FILE_SEP;

	public static final String UPLOAD_IMAGES_PATH = "桥梁照片" + FILE_SEP;

	public static final String UPLOAD_SOURCE_PATH = "桥梁档案" + FILE_SEP;

	public static final String UPLOAD_PROJ_FILE_PATH = "工程文档" + FILE_SEP;

	public static final String UPLOAD_MSG_FILE_PATH = "通知文档" + FILE_SEP;

	public static final String TEMP_PATH = "temp" + FILE_SEP;

	public static final String CANNOT_FOUND_IMAGE_PATH = "resources" + FILE_SEP
			+ "cannotfoundimage.gif";

	public static final String CANNOT_FOUND_FILE_PATH = "resources" + FILE_SEP
			+ "cannotfound.gif";

	public static final String NO_IMAGE_PATH = "resources" + FILE_SEP
			+ "nopic.gif";

	/** 工作流程变量 */
	public static final String RECEIVED_ID = "receivedId";
	public static final String JBPM_IMAGE = "received.png";

	public static final String APPLY_ID = "applyId";
	public static final String PROGRAM_ID = "programId";
	public static final String MACHINE_ID = "machineId";
	public static final String LABS_ID = "labsId";
	public static final String DETECTION_ID = "detectionId";
	public static final String ACCEPT_ID = "acceptId";
	public static final String COMPLE_ID = "compleId";
	public static final String MDETECT_ID = "mdetectId";
	public static final String DMARINE_ID = "dmarineId";
	public static final String CMARINE_ID = "cmarineId";
	public static final String RECHECK_ID = "recheckId";
	
	public static final String START_TYPE = "startType";

	/** 造价流程变量 */
	public static final String ESTIMATE_ID = "estimateId";
	public static final String BUDGET_ID = "budgetId";
	public static final String LIMITED_ID = "limitedId";
	public static final String COMPLETED_ID = "completedId";
	public static final String DRAWING_ID = "drawingId";
	public static final String MODIFY_ID = "modifyId";
	
	public static final String DOCUMENT_ID = "documentId";
	
	/** 工作流action转发String */
	public static final String VIEW = "view";
	public static final String LOOK = "look";
	public static final String LETTER = "letter";
	public static final String REVIEW = "review";
	public static final String REINPUT = "reinput";
	public static final String COMPLY = "comply";
	public static final String COMPLY_INPUT = "complyinput";
	public static final String FEEDBACK = "feedback";
	public static final String FEED_INPUT = "feedinput";
	public static final String LEADER = "leader";
	public static final String LEADINPUT = "leadinput";
	public static final String PROPOSED = "proposed";
	public static final String PROINPUT = "proinput";
	public static final String ARCHIVE = "archive";
	public static final String ARCHINPUT = "archinput";
	public static final String DELEGATE = "delegate";
	public static final String LAST = "last";
	public static final String DONE = "done";
	public static final String FIND = "find";
	public static final String PNG = "png";
	public static final String FLOW = "flow";
	public static final String PAGE = "page";
	public static final String ASSIGN = "assign";
	public static final String IMAGE = "image";
	public static final String START = "start";
	public static final String END = "end";
	public static final String OVER = "over";
	public static final String ISSUE = "issue";
	public static final String WATCH = "watch";

	public static final String LABS = "labs";
	public static final String APPLY = "apply";
	public static final String DETECTION = "detection";

	/** 收发文常量 */
	public static final String EXIT = "直接通过";
	public static final String OTHER = "上级审批";

	public static final String BACK = "退回";
	public static final String PASS = "通过";

	public static final String STATE_START = "创建";
	public static final String STATE_APPLY = "申请";
	public static final String STATE_FIRST = "初审";
	public static final String STATE_CHECK = "复核";
	public static final String STATE_AGREE = "审核通过";
	public static final String STATE_COMPLY = "承办";
	public static final String STATE_FEED = "审核";
	public static final String STATE_REVIEW = "复审";
	public static final String STATE_PROPOSED = "拟办";
	public static final String STATE_INSPECT = "核对";
	public static final String STATE_ARCHIVE = "归档";
	public static final String AGREE = "同意";
	public static final String STATE_EXIT = "退回";
	public static final String STATE_SUCCESS = "结束";
	public static final String STATE_CONVEY = "发文";

	public static final String CONVEY_START = "拟稿";
	public static final String CONVEY_ID = "conveyId";
	public static final String CONVEY_IMAGE = "convey.png";

	public static final String PLAN_ID = "planId";
	public static final String CHECK_ID = "checkId";

	public static final String INFO = "info";
	public static final String COMPLETE = "complete";
	public static final String CHOOSE = "choose";
	public static final String OWN = "own";

	public static final String WORD = "word";

}
